package com.automobile.backstage.dao;

import com.automobile.backstage.domain.Category;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

//@CacheNamespace(blocking = true)
@Repository
public interface CategoryDao {
	
	@Select("select * from category")
	List<Category> findCategoryAll();
	
	@Select("select id from category where name = #{name}")
	int findIdByName(String name);
	
}
